   <?php
//MAC
/* $Support=mysql_query("SELECT * FROM $Table ORDER BY idEmail") or die(mysql_error());
 $NbMac=0;
while($rowM=mysql_fetch_array($Support)){
$SupportM=$rowM['Agent'];
	if(eregi('Mac', $SupportM) && (!eregi('iPhone', $SupportM) && !eregi('iPad', $SupportM))){
	$NbMac++;
	}
}

$RatioM=(($NbMac)*100)/$nbEmailTotal;
$RatioMOK= sprintf("%.2f",$RatioM)." % (soit ".$NbMac." ouvertures)";


//PC
$Support=mysql_query("SELECT * FROM $Table ORDER BY idEmail") or die(mysql_error());
 $NbPC=0;
while($rowP=mysql_fetch_array($Support)){
$SupportP=$rowP['Agent'];
	if(eregi('Windows', $SupportP)){
	$NbPC++;
	}
}

$RatioP=(($NbPC)*100)/$nbEmailTotal;
$RatioPOK= sprintf("%.2f",$RatioP)." % (soit ".$NbPC." ouvertures)";

//SMARTPHONE
 $Support=mysql_query("SELECT * FROM $Table ORDER BY idEmail") or die(mysql_error());
 $NbSmart=0;
while($rowNS=mysql_fetch_array($Support)){
$SupportS=$rowNS['Agent'];
	if(eregi('Android', $SupportS) || eregi('BlackBerry', $SupportS) || eregi('Symbian', $SupportS)){
	$NbSmart++;
	}
}
$RatioNS=(($NbSmart)*100)/$nbEmailTotal;
$RatioNSOK= sprintf("%.2f",$RatioNS)." % (soit ".$NbSmart." ouvertures)";


//IPHONE
$Support=mysql_query("SELECT * FROM $Table ORDER BY idEmail") or die(mysql_error());
  $NbIphone=0;
while($rowNI=mysql_fetch_array($Support)){
$SupportI=$rowNI['Agent'];
	if(eregi('iPhone', $SupportI)){
	$NbIphone++;
	}
}
$RatioNI=(($NbIphone)*100)/$nbEmailTotal;
$RatioNIOK= sprintf("%.2f",$RatioNI)." % (soit ".$NbIphone." ouvertures)";


//IPAD
$Support=mysql_query("SELECT * FROM $Table ORDER BY idEmail") or die(mysql_error());
 $NbIpad=0;
while($rowIpad=mysql_fetch_array($Support)){
$SupportIpad=$rowIpad['Agent'];
	if(eregi('Ipad', $SupportIpad)){
	$NbIpad++;
	}
}
$RatioIpad=(($NbIpad)*100)/$nbEmailTotal;
$RatioIpadOK= sprintf("%.2f",$RatioIpad)." % (soit ".$NbIpad." ouvertures)";
*/
?>